#include "FireSensor.h"

int fireSensor() {
  // put your setup code here, to run once:
  int valueOfFire = analogRead(fireline);
  if(valueOfFire < 500)
   {
      digitalWrite(doorLightPin,HIGH);
      //soundAlarm();
      delay(300);
   }
   else
   {
      digitalWrite(doorLightPin,LOW);
   }
   return valueOfFire;
}

void Fireinit() 
{
  pinMode(fireline,INPUT);//编号是随便写的
  //pinMode(6,OUTPUT);//检测到火焰之后灯亮，灯的编号随便写的
}
